//
//  FLNLoginRegisterView.m
//  百思不得姐
//
//  Created by xmg on 16/6/6.
//  Copyright © 2016年 FLN.com. All rights reserved.
//

#import "FLNLoginRegisterView.h"

@interface FLNLoginRegisterView ()

@property (weak, nonatomic) IBOutlet UIButton *loginButton;


@end

@implementation FLNLoginRegisterView

- (void)awakeFromNib {

    //获取登录按钮 背景图片
    UIImage *image = self.loginButton.currentBackgroundImage;
    image = [image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
    
    [self.loginButton setBackgroundImage:image forState:UIControlStateNormal];
}


+ (instancetype)registerView {

    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
}

+ (instancetype)loginView {
    
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] firstObject];

}

@end
